﻿import request from '/@/utils/request';
enum Api {
  AddTest1 = '/api/test1/add',
  DeleteTest1 = '/api/test1/delete',
  UpdateTest1 = '/api/test1/update',
  PageTest1 = '/api/test1/page',
  DetailTest1 = '/api/test1/detail',
}

// 增加测试1
export const addTest1 = (params?: any) =>
	request({
		url: Api.AddTest1,
		method: 'post',
		data: params,
	});

// 删除测试1
export const deleteTest1 = (params?: any) => 
	request({
			url: Api.DeleteTest1,
			method: 'post',
			data: params,
		});

// 编辑测试1
export const updateTest1 = (params?: any) => 
	request({
			url: Api.UpdateTest1,
			method: 'post',
			data: params,
		});

// 分页查询测试1
export const pageTest1 = (params?: any) => 
	request({
			url: Api.PageTest1,
			method: 'post',
			data: params,
		});

// 详情测试1
export const detailTest1 = (id: any) => 
	request({
			url: Api.DetailTest1,
			method: 'get',
			data: { id },
		});


